home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / compuserve-file-archive / 05 Programming / UWEDGE.TXT < prev    next >
Text File  |  2019-04-13  |  15KB  |  346 lines

  1.  TEXT EDITOR
  2.  
  3.  Creating a document
  4.  
  5.  To start the text editor,use the *t command. Then, from the EDITOR menu,
  6.  clear the text buffer by selecting 1 and pressing RETURN. You will be asked
  7.  to confirm the command (just a safety precaution for those like myself who
  8.  sometimes forget to save things before erasing them).
  9.  
  10.  Next, set up the margins and page length you want with selection 2. Default
  11.  values are: left margin 5, right 75, lines per page, 55. The current value
  12.  will be displayed under the cursor, giving you a chance to either modify the
  13.  value or leave it intact (just pressing RETURN will use the current value).
  14.  
  15.  Now enter the edit mode with selection 3 (default menu selection). If you
  16.  ever get a ?FORMAT ERROR message, it will probably be because the text buffer
  17.  was not initialized before entering the edit mode for the first time, or the
  18.  margins were set to illegal values (left > 77 or too close to right or right
  19.  > 80).
  20.  
  21.  
  22.  NOTE: You can return to the menu at any time by pressing the STOP key. Also,
  23.  pressing CTRL H (while in edit mode) will return a help screen to assist
  24.  those who don't like to memorize control and function keys.
  25.  
  26.  
  27.  The screen will clear and (if you used the default margin values) you will
  28.  see bars at the left and right sides of your screen. These are the margin
  29.  markers, and at the bottom of the screen will be a status line. You will not
  30.  be able to type into the margin markers, as they are there to help you format
  31.  your text and let you know where your lines start and end. All screen lines
  32.  will be combined in pairs as 80 column lines, which will leave you with 12
  33.  lines on the screen at a time. You can identify which page, line and column
  34.  the cursor is on by reading the status line at the bottom of the screen. The
  35.  status line also lists a reminder for the help screen (should you need it).
  36.  
  37.  Type a line of text. At the end of the line, press RETURN to get to the next
  38.  line, or just keep on typing. Words will not be broken at the right margin
  39.  marker, because of the editor's automatic PARSING feature. If the last letter
  40.  on a line is not a space, the editor will move the entire word to the next
  41.  line for you. There are some safety features built into this routine, too. If
  42.  there is text on the next line, parsing will not take place. This allows you
  43.  to edit a previous line without accidentally dumping text on the next one.
  44.  Also, parsing will not operate on words longer than 10 characters. That was
  45.  done to allow the use of long strings of dashes for borders, etc. Parsing is
  46.  there to allow you to type without having to watch the screen. Be wary of
  47.  shifted spaces...the editor treats them as characters (not spaces), and they
  48.  can cause unexpected results, especially if they are on the next line...the
  49.  editor will not parse, thinking there is text there. This can be used to
  50.  FORCE a word to stay on the previous line, should you want it to. An example
  51.  of this is the word at the end of this line...                            end.
  52.  @
  53.  CURSOR KEYS
  54.  
  55.  Cursor right and left work as you would expect them to. Cursor up and down
  56.  are a bit different. They move the cursor 2 screen lines at a time (which is
  57.  really ONE 80 column line). The insert and delete keys will work as expected,
  58.  but only on the current line. When holding the delete key down, the cursor
  59.  will make it's way only as far as the left margin. If you want to delete part
  60.  of the previous line, move the cursor there with a cursor left, and then
  61.  continue deleting. The insert key will push all text from the cursor position
  62.  on towards the right margin. Text pushed into the right margin cannot be
  63.  recovered. The home key works normally, but screen clear is not supported.
  64.  
  65.  SCROLLING THE SCREEN AND THE@TEXT@BUFFER
  66.  
  67.  Attempting to move the cursor past the bottom of the screen will cause the
  68.  screen to scroll forward. Reverse scrolling will happen at the top of the
  69.  screen. When you move the cursor to the end of available memory, forward
  70.  movement will stop. The same is true for reverse movement at the screen's top.
  71.  @
  72.  If you plan to create or load a big document, you should free up as much
  73.  memory as possible by typing NEW in the command mode prior to entering the
  74.  editor. Be sure to clear text memory too, or you may get a screenful of
  75.  "garbage" or a ?FORMAT ERROR message when you attempt to enter the edit mode.
  76.  481 lines are available with a big buffer like this (8 pages at 60 lines
  77.  per).
  78.                                                                        @
  79.  THE@CTRL KEYS
  80.  
  81.  CTRL D will delete the current line and draw all forward lines in to close
  82.  the gap. CTRL I will open up a blank line, pushing all lines forward from the
  83.  current line on. Holding CTRL d or CTRL i will allow you to quickly delete or
  84.  insert large portions of text. Even faster inserts and deletes are possible
  85.  with the next set of keys (BLOCK CTRL KEYS).
  86.  
  87.  THE BLOCK CTRL KEYS
  88.  
  89.  These keys call routines which operate on a BLOCK of text (a block being one
  90.  or more full lines of text). The first time a BLOCK CTRL key is pressed, the
  91.  start of the block is defined and stored (it will be the line the cursor is
  92.  on), and the cursor fast-flashes to let you know you have invoked a BLOCK
  93.  function. The second time you press the BLOCK CTRL key, you should have
  94.  already moved the cursor to the line you wish to designate as the last line
  95.  in the block. That line will be defined as the end of the block, and the
  96.  function will be executed.
  97.  
  98.  
  99.  NOTE: If you accidentally invoke a block function (the cursor will fast-flash
  100.  when one is begun), you can cancel it by pressing the STOP key. This will
  101.  take you to the menu (where all editing functions are cancelled), and from
  102.  there you can return to edit mode by pressing RETURN (selection 3 will be
  103.  under the cursor).
  104.  
  105.  
  106.  CTRL A (align a block)
  107.  
  108.  This command will "repack" a block of text between the margin markers. I
  109.  frequently use it to convert 40-column text captured by my terminal's buffer
  110.  to 80 columns for printing. Blank lines are preserved, but all extra spaces
  111.  between words are eliminated (repacks with one space between words). If extra
  112.  spaces between words are desired, use shifted spaces (they're treated like a
  113.  character by the alignment routine). Here's an alignment demo:
  114.  
  115.  
  116.  This is the first line.
  117.  This is the second line.
  118.  This is the third line.
  119.  
  120.  
  121.  Now here are the same 3 lines repacked with CTRL A:
  122.  
  123.  
  124.  This is the first line. This is the second line. This is the third line.
  125.  
  126.  
  127.  Here's the set of lines repacked to be an indented block of text:
  128.  
  129.  
  130.                This is the first line.
  131.                This is the second line.
  132.                This is the third line.
  133.  
  134.  The first repack was done by pressing CTRL A with the cursor on the first
  135.  line. Then, CTRL A on the last line. The block gets copied and repacked in a
  136.  buffer, the original block removed, and the new "repacked" block inserted in
  137.  it's place. The block buffer retains a copy of the last block buffered.
  138.  
  139.  The second repack was done with the margins reset to 15 left and 40 right. If
  140.  you try this last one yourself, you will notice that the margin markers will
  141.  cover up some of the text when you reenter edit mode (normal). Just go ahead
  142.  and define the block with CTRL A's. Then reset the margins after the repack.
  143.  
  144.  CTRL C (copy a block)
  145.  
  146.  This function copies a block of text into the block buffer.
  147.  
  148.  CTRL M (merge a block)
  149.  
  150.  Inserts the text from the block buffer into the document at the cursor line.
  151.  Text from the cursor line on is moved forward in the document to make room
  152.  for the merger.
  153.  
  154.  CTRL R (remove a block)
  155.  
  156.  Removes a block of text from the document and closes up the gap. The removed
  157.  block is copied into the block buffer. This function can be used to delete
  158.  huge portions of text, or to "pick up" a piece of the document, relocate and
  159.  merge it elsewhere with a subsequent CTRL M.
  160.  
  161.  CTRL R can also be used to buffer a chunk of your document so that you can
  162.  load another one and merge the buffered text into it. Here's how:
  163.  
  164.  Gobble up the portion of your document you DON'T want with CTRL R. Last,
  165.  gobble the text you WANT. This will leave you with a blank workspace, and
  166.  the desired text in the block buffer. Now, load the file you want to merge
  167.  the text into, and insert the buffered text with CTRL M.
  168.  
  169.  Sounds like the long way around, but if you clear your workspace from the
  170.  menu, you also clear the block buffer. So, CTRL R will give you a way to do
  171.  it. You can also merge text with the load routine (see that section).
  172.  
  173.  CTRL S (set block underlining)
  174.  
  175.  You can define any text to be underlined by typing it in reverse video (more
  176.  on this later). CTRL S will convert an entire block to a reverse video block.
  177.  When the editor's printing routine comes across this text, it will be sent to
  178.  the printer as underlined text (as long as the printer has that capability).
  179.  This function, and CTRL K, will allow you to define less than a full line of
  180.  text as part of the block. The text does not get copied into the buffer.
  181.  Also, CTRL S will not underline spaces at the end of a line, and will ignore
  182.  blank lines.
  183.  
  184.  CTRL K (kill block underlining)
  185.  
  186.  Kills any reverse video in a block of text. Sometimes you may load a file and
  187.  find it full of reverse video text (nulls added to a file by a BBS can cause
  188.  this to happen. More on this later). When that happens, this function will
  189.  allow you to correct it very quickly.
  190.  
  191.  CTRL V (view the block buffer)
  192.  
  193.  Allows you to see what's in the block buffer. Will not function if the buffer
  194.  is empty.
  195.  
  196.  CTRL Z (zero block buffer)
  197.  
  198.  Allows you to zero the block buffer. You may want to do this if you run out
  199.  of memory (and you have text in the block buffer) and you need to free up
  200.  some extra room for the rest of your document. As you may have guessed, the
  201.  block buffer is allocated from part of the "free" text buffer.
  202.  
  203.  
  204.  NOTE: If your document is quite big, and you attempt to align, copy or merge
  205.  a large part of it, nothing may happen. This will occur if the block is too
  206.  big to fit into the buffer (memory for the buffer will be small in a case
  207.  like this). Also, any block function that writes to the block buffer will
  208.  erase the previous contents of the buffer. However, CTRL D and CTRL I don't
  209.  write to the buffer, so they can be used when you want to preserve the
  210.  contents of the buffer, but you would still like to insert and delete lines.
  211.  
  212.  CTRL B (clear to beginning of line)
  213.  
  214.  Clears all text from the cursor to the beginning of the line. Does not write
  215.  to the buffer.
  216.  
  217.  CTRL E (clear to the end of line)
  218.  
  219.  Clears all text from the cursor to the end of the line. Does not write to the
  220.  buffer.
  221.  
  222.  
  223.  NOTE: CTRL C, M, B, E and A can be used together to insert text in the middle
  224.  of a paragraph. I'll demonstrate with this paragraph.
  225.  
  226.  
  227.  What I'll do is insert "(ain't that grand?)" between "text" and "in". First,
  228.  duplicate the first line to be changed with CTRL C and CTRL M:
  229.  
  230.  
  231.  NOTE: CTRL C, M, B, E and A can be used together to insert text in the middle
  232.  NOTE: CTRL C, M, B, E and A can be used together to insert text in the middle
  233.  of a paragraph. I'll demonstrate with this paragraph.
  234.  
  235.  
  236.  Now, edit the lines like this with CTRL E and CTRL B:
  237.  
  238.  
  239.  NOTE: CTRL C, M, B, E and A can be used together to insert text
  240.                                                                  in the middle
  241.  of a paragraph. I'll demonstrate with this paragraph.
  242.  
  243.  
  244.  Now, type in the extra text:
  245.  
  246.  
  247.  NOTE: CTRL C, M, B, E and A can be used together to insert text
  248.  (ain't that grand?)                                             in the middle
  249.  of a paragraph. I'll demonstrate with this paragraph.
  250.  
  251.  
  252.  Finally, align (repack) the block:
  253.  
  254.  
  255.  NOTE: CTRL C, M, B, E and A can be used together to insert text (ain't that
  256.  grand?) in the middle of a paragraph. I'll demonstrate with this paragraph.
  257.  
  258.  
  259.  This may seem like a lot of steps (and it is), but it's really a lifesaver on
  260.  a LARGE paragraph where the alternative is to retype part of each line.
  261.  
  262.  
  263.  CTRL U and CTRL O  (underlining mode and underlining off mode)
  264.  
  265.  Default is CTRL O (underlining off). Pressing CTRL U will cause any furthur
  266.  text typed to be displayed in reverse video (underlined text). CTRL O cancels
  267.  this mode.
  268.  
  269.  
  270.  CTRL P and CTRL N (previous and next screen)
  271.  
  272.  These functions allow rapid movement through the document. CTRL N will move
  273.  you ahead 11 lines, and CTRL P back 11 lines.
  274.  
  275.  
  276.  CTRL F and CTRL L (get first or last page)
  277.  
  278.  CTRL F will move you immediately to the first page, first line, first
  279.  character. CTRL L sends you to to the last page, last line, last character.
  280.  
  281.  
  282.  CTRL W (word search)
  283.  
  284.  This function will hunt down a word or string for you and take you there
  285.  immediately. The word or string can be up to 80 characters long, and can be
  286.  searched from the beginning of the document or from the last cursor position.
  287.  This will allow you to go to a specific area in your document without having
  288.  to burn your eyes out looking for a key word or phrase.
  289.  
  290.  The search performed is defaulted to a wild card search. Searching for the
  291.  word "for" will return the first found of any of the following strings:
  292.  
  293.  for  forward  forcast  fort
  294.  
  295.  To ensure the routine will only find "for" use this for the string:for *
  296.  (note the space between the asterisk and the word). This is sort of an "anti"
  297.  wild card, but what it really does is ensure that the search routine will
  298.  look for the string "for" with a space after it, eliminating matches with the
  299.  other strings.
  300.  
  301.  I also use CTRL W to search for labels (and references to them) in my source
  302.  files. Allows me to make changes, and find ALL references to the label. I
  303.  just keep searching until the routine tells me it can't find the string (at
  304.  that point I know I have them all.
  305.  
  306.  NOTE: If the first occurrance of the word in your document is not the one
  307.  you're looking for, do a cursor right and search again, but this time answer
  308.  no to the first prompt. This will continue the search from the last cursor
  309.  position and find the next occurrance of the word.
  310.  
  311.  
  312.  CTRL H (gets the help screen)
  313.  
  314.  
  315.  NOTE: When the cursor is in the fast-flash mode, any other editing keys that
  316.  do not fast-flash the cursor can be used. This means you can move from one
  317.  end of the document to the other (with CTRL L, for example) while defining a
  318.  block. Let's say you wanted to repack the entire document. The CTRL KEY
  319.  sequence could be CTRL F (go to beginning) CTRL A (define block beginning)
  320.  CTRL L (go to end) CTRL A (define block end and execute block-align).
  321.  
  322.  Also, you will probably notice that any of the keys that fast-flash the
  323.  cursor can be used to define the start of a block. It's the LAST key you
  324.  press that defines the function at the same time it defines the end of the
  325.  block. For example, this means that the sequence CTRL A, CTRL C will
  326.  accomplish the same thing as CTRL C, CTRL C.
  327.  
  328.  
  329.  FUNCTION KEYS (f1 thru f8)
  330.  
  331.  f7 moves the cursor to the next tab to the right. The cursor returns to the
  332.  left margin after the last tab is reached.
  333.  
  334.  f5 moves the cursor to the next tab to the left. The cursor returns to the
  335.  right margin after the last tab is reached.
  336.  
  337.  f4 set up tabs at every 5th column and erases all other tabs
  338.  
  339.  f3 sets a tab at the cursor position
  340.  
  341.  f2 clears all tabs
  342.  
  343.  f1 clears the tab at the cursor position
  344.  
  345.  The other function keys are not used
  346.